package com.yuantu.judiciary.controller;

import com.google.zxing.WriterException;
import com.yuantu.judiciary.common.Response;
import com.yuantu.judiciary.common.ResponseFactory;
import com.yuantu.judiciary.model.form.LoginForm;
import com.yuantu.judiciary.model.vo.PageVO;
import com.yuantu.judiciary.model.vo.ShopThirdQueryVO;
import com.yuantu.judiciary.service.ICheckPersonService;
import com.yuantu.judiciary.service.IShopCheckService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;


/**
 * 组织管理模块
 *
 * @author syw
 * @since 2023-08-12
 **/
@RestController
@RequestMapping(value = "/shop")
@Api(tags = "门店查询")
@RequiredArgsConstructor
public class ShopCheckController extends BaseController {

    private final IShopCheckService shopCheckService;




    @ApiOperation(value = "背调结果查询")
    @PostMapping("/third/getQueryResult")
    public Response<ShopThirdQueryVO> getQueryResult(@RequestHeader("token") String token, @RequestParam String identityNum) {
        return ResponseFactory.okResponse(shopCheckService.getThirdQueryByIdenitityNum(token,identityNum));
    }


}
